def solution(word: str) -> int:
    # PLEASE DO NOT MODIFY THE FUNCTION SIGNATURE
    # write code here
    word_list = [c for c in word]
    for i in range(len(word_list)):
        if word_list[i].isalpha():
            word_list[i] = " "
    num_list =  "".join(word_list).split(" ")
    result = []
    for n in num_list:
        if n and int(n) not in result:
            result.append(int(n))

    return len(result)


if __name__ == '__main__':
    print(solution("a123bc34d8ef34") == 3)
    print(solution("t1234c23456") == 2)
    print(solution("a1b01c001d4") == 2)